package org.thanos.demo.message;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Producer {

    @Autowired
    private AmqpTemplate amqpTemplate;

    public void send(String topic, String message) {
        amqpTemplate.convertAndSend(topic, message);
    }
}
